package common

import (
	"github.com/go-redis/cache"
	"github.com/go-redis/redis"
)

// 定义全区变量 为了保证执行顺序 初始化均在main中执行
var (
	// redis client
	Rdb *redis.Client
	// global cache
	Cc *cache.Codec
)

//定义常数
const (
	Appid                string = ""
	Secret               string = ""
	LoginUrl                    = "https://api.weixin.qq.com/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code"
	TokenUrl                    = "https://api.weixin.qq.com/cgi-bin/token"
	Redis_AccessTokenKey        = Appid + "_" + "accessToken"
)
